<include file="Public/head" />
<style type="text/css">
    .car_info{margin:10px 20px;}
    .car_info .car_no{width:100%;height:36px;margin-bottom:10px;}
    .car_info .car_no span{width:150px;height:28px;line-height:28px;display:block;float:left;background-color:#20ab4f;border:1px solid #FFF;color:#fff;text-align:center;border-radius:5px}
    .car_info table tr td{height:30px;text-align:left;font-size:12px;padding-left:10px;}
    .clear{clear:both;}
</style>
</head>
<include file="Public/common_header" />
<div class="mian">
<include file="Public/sidebar" menu="cxtj.mcyhcx" />
    <div class="mianR">
        <h3 class='cha'>用户基本信息</h3>
        <div class='car_info'>
            <div class='car_no'><span style="font-size:14px;">用户ID：<b>{$owner.owner_id}</b></span></div>
            <table border='1' width='100%'>
                 <tbody>
                     <tr>
                        <td colspan='4' style="background-color:#c1c1c1;font-size:14px;"><span>车主信息</span></td>
                     <tr>
                         <td width="11%" style="color:#898b8a;">车主类型</td>
                         <td width="39%">{$owner.owner_type_name}</td>
                         <if condition="$owner.owner_type eq 1">
                             <td width="11%" style="color:#898b8a;">车主姓名</td>
                             <td width="39%">{$owner.seller_name}</td>
                             <else />
                             <td width="11%" style="color:#898b8a;">公司名称</td>
                             <td width="39%">{$owner.seller_name}</td>
                         </if>
                     </tr>
                     <tr>
                         <if condition="$owner.owner_type eq 1">
                             <td width="11%" style="color:#898b8a;">联系电话</td>
                             <td colspan="3">{$owner.phone}</td>
                             <else />
                             <td width="11%" style="color:#898b8a;">联系人姓名</td>
                             <td width="39%">{$owner.contact_person}</td>
                             <td width="11%" style="color:#898b8a;">联系电话</td>
                             <td width="39%">{$owner.phone}</td>
                         </if>
                     </tr>
                     </tr>
                 </tbody>
            </table>
            <table border='1' width='100%' style="margin-top:20px;">
                 <tbody>
                     <tr>
                        <td colspan='4' style="background-color:#c1c1c1;font-size:14px;"><span>车辆信息</span></td>
                        <tr>
                            <td width="11%" style="color:#898b8a;">车型</td>
                            <td width="39%">{$owner.car_model}</td>
                            <td width="11%" style="color:#898b8a;">行驶里程</td>
                            <td width="39%">{$owner.mileage}公里</td>
                        </tr>
                        <tr>
                            <td style="color:#898b8a;">上牌时间</td>
                            <td>{$owner.first_reg_date}</td>
                            <td style="color:#898b8a;">车辆所在地</td>
                            <td>{$owner.location_area}</td>
                        </tr>
                 </tbody>
            </table>
            <table border='1' width='100%' style="margin-top:20px;">
                 <tbody>
                     <tr>
                        <td colspan='4' style="background-color:#c1c1c1;font-size:14px;"><span>渠道信息</span></td>
                        <tr>
                            <td width="11%" style="color:#898b8a;">渠道来源</td>
                            <td width="39%"> 
                                <if condition="$owner.comefrom neq ''">
                                    {$show_from[$owner['comefrom']]}
                                    <else/>
                                    未知
                                </if>
                            </td>
                            <td width="11%" style="color:#898b8a;">提交时间</td>
                            <td width="39%">{$comefrom_info.publish_time}</td>
                        </tr>
                 </tbody>
             </table>
                 <if condition="$owner.business_status eq '2'">
                    <table border='1' width='100%' style="margin-top:20px;">
                         <tbody>
                             <tr>
                                <td colspan='2' style="background-color:#c1c1c1;font-size:14px;"><span>跟踪信息</span></td>
                                 <if condition="$reserve.type eq '2'">
                                    <tr>
                                        <td width="11%" style="color:#898b8a;">下次跟踪时间</td>
                                        <td width="89%">
                                            {$reserve.next_trace_time}
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="color:#898b8a;">跟踪原因</td>
                                        <td>{$reserve.remark}</td>
                                    </tr>
                                  <else />
                                    <tr>
                                        <td width="11%" style="color:#898b8a;">跟踪时间</td>
                                        <td width="89%">{$owner.modify_time}</td>
                                    </tr>
                                    <tr>
                                        <td style="color:#898b8a;">跟踪原因</td>
                                        <td>跟踪中</td>
                                    </tr>
                                 </if>
                                  
                             </tr>
                         </tbody>
                    </table>
                 <elseif condition="$owner.business_status eq '3'" />
                     <table border='1' width='100%' style="margin-top:20px;">
                         <tbody>
                             <tr>
                                <td width="11%" style="color:#898b8a;">备注信息</td>
                                <td width="89%">{$reserve.remark}</td>
                             </tr>
                         </tbody>
                    </table>
                 
                     <elseif condition="$owner.business_status eq '4'" />
                        <php>$service_method = array('1'=>'未知','2'=>'上门','3'=>'到店')</php>
                         <table border='1' width='100%' style="margin-top:20px;">
                         <tbody>
                             <tr>
                                <td colspan='4' style="background-color:#c1c1c1;font-size:14px;"><span>预约信息</span></td>
                                <tr>
                                    <td width="11%" style="color:#898b8a;">预约时间</td>
                                    <td width="39%">{$owner.reserve_time}</td>
                                    <td width="11%" style="color:#898b8a;">服务方式</td>
                                    <td width="39%">{$service_method[$owner[service_method]]}</td>
                                </tr>
                                <tr>
                                    <td style="color:#898b8a;">预约地址</td>
                                    <td colspan='3'>
                                       {$reserve_address}
                                    </td>
                                </tr>
                             </tr>
                         </tbody>
                    </table>
                 </if>
        </div>
        <h3 class="yonghu" style="margin-top:25px;">系统跟踪日志</h3>
        <div class="yonghuText">
            <ul>
                <li class="clearfix" style="border-bottom:1px solid #ececec;font-weight:bolder;">
                    <em>发生时间</em>
                    <em>状态信息</em>
                    <em>操作人</em>
                </li>
                <volist name="reserve_log" id="rl">
                    <li class="clearfix">
                        <em>{$rl.createtime}</em>
                        <em>{$rl.status}</em>
                        <em>{$rl.man}</em>
                    </li>
                </volist>
                <li class="clearfix">
                    <em>{$comefrom_info.posttime}</em>
                    <em>{$comefrom_info.status}</em>
                    <em>{$comefrom_info.man}</em>
                </li>
            </ul>
        </div>
        <div class="yongBtn1">
            <input type="button"  class="quxiao" onclick="window.close()" value="关闭" />
        </div>
    </div>
</div>
<script type="text/javascript">
//$(function(){
//   $(".quxiao").on("click",function(){
//       setTimeout(function () {
//            window.location.href = "{:U('CarOwnerCheck/index')}?p="+{$p};
//        }, 500);
//   });
//});
    
    
function setMethod(m){
    $("#service_method").val(m);
}

function setStatus(status){
    $("#business_status").val(status);
}

$(".other_remark").blur(function(){    
    $("#reserve_remark").val($(this).val());
});


$(".gencuur").click(function(){
    var str = $(this).children("font").html();
    $("#reserve_remark").val(str);
});
</script>
</body>
</html>